
<form method="post" id="form1">
<table border="0" class="form" cellpadding=0 cellspacing=0>
<tr>
	<td colspan=2 class="head">分类管理</td>
</tr>
<tr>
	<td class="title">标题</td>
	<td class="data"><input type="text" name="title" value="<?php echo $cate['title']?>" size="50" /></td>
</tr>
<tr>
	<td class="title">类型</td>
	<td class="data"><?php echo $node_types[$cate['type']]; ?></td>
</tr>
<tr>
	<td class="title">描述</td>
	<td class="data"><textarea name="desc" rows=6 cols=45><?php echo $cate['desc']?></textarea></td>
</tr>
<tr>
	<td colspan=2 class="foot">
		<input type="submit" value="提交" /> &nbsp;
		<input type="button" value="返回" onclick="location.href='<?php echo url('cate/pid/'.$cate['pid']);?>'" />
	</td>
</tr>
</table>
</form>

<script>
$(document).ready(function(){
	$('#form1').ajaxForm(function(data){
		alert(data.message);
		if(data.level=='notice') location.href=data.jump?data.jump:'<?php echo $_SERVER['REQUEST_URI'] ?>';
	});
});
</script>